package com.aspose.cells;

public class ConditionalFormattingIconCollection extends CollectionBase {
   void a(ConditionalFormattingIconCollection var1) {
      for(int var2 = 0; var2 < var1.getCount(); ++var2) {
         ConditionalFormattingIcon var3 = new ConditionalFormattingIcon();
         var3.a(var1.get(var2));
         com.aspose.cells.b.a.a.ze.a(this.a, (Object)var3);
      }

   }

   public ConditionalFormattingIcon get(int index) {
      if (index >= this.a.size()) {
         throw new IllegalArgumentException("Invalid conditionalFormattingIcon index : " + index);
      } else {
         return (ConditionalFormattingIcon)this.a.get(index);
      }
   }

   public int add(int type, int index) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)(new ConditionalFormattingIcon(type, index)));
      return this.getCount() - 1;
   }

   public int add(ConditionalFormattingIcon cficon) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)cficon);
      return this.getCount() - 1;
   }
}
